package fr.labri.macchiato.framework.business.encoder;

import org.fusesource.restygwt.client.JsonEncoderDecoder;

import com.google.gwt.core.client.GWT;

import fr.labri.macchiato.framework.business.model.preferences.UserPreferences;
import fr.labri.macchiato.framework.technical.encoder.EncoderGeneric;

/**
 * Encoder for the {@link UserPreferences} class
 * 
 * @author Matthieu Foucault
 * 
 */
class PreferencesEncoder extends EncoderGeneric<UserPreferences> {

	interface PreferencesCodec extends JsonEncoderDecoder<UserPreferences> {
	}

	PreferencesEncoder() {
		codec = GWT.create(PreferencesCodec.class);
	}

}
